const deleteImage = require("./delete");

exports.create = (router) => {
  router.post('/image/delete', async (req, res) => {
    let message = false;
    try {
      const data = await deleteImage.create(req.body.fileName);
      message = data;
      res.status(200).send({ message });
    } catch (error) {
      console.log(error);
      res.status(500).send({ message });
    }
  });
};
